import {createRouter,createWebHashHistory} from 'vue-router'

let routes =[
    {
        path:'/login',
        component:()=>import('../pages/login/index.vue')
    },
    {
        path:'/',
        component:()=>import('../pages/home/index.vue'),
        children:[
            {
                path:'welcome',
                component:()=>import('../pages/home/welcome/index.vue')
            },
            {
                path:'money',
                component:()=>import('../pages/home/money/index.vue')
            },
            {
                path:'roleForm',
                component:()=>import('../pages/home/roleForm/index.vue')
            },
            {
                path:'roleManage',
                component:()=>import('../pages/home/roleManage/index.vue')
            }
        ]
    }

]


let router = createRouter({
    history:createWebHashHistory('/base'),
    routes
})
export default router